seed = 1
test = test_base
verbosity = UVM_MEDIUM
UVM_HOME  = /home/xinyuan/project/uvm_verif/uvm-1.1c

all: vcs_clean vcs_all

vcs_all: vcs_build vcs_run

vcs_build:
	vcs -full64 -sverilog -debug_pp -timescale=1ns/100ps -noDumpPLI \
	-fsdb  +define+UVM_NO_DEPRECATED \
	+incdir+$(UVM_HOME)/src $(UVM_HOME)/src/uvm.sv \
	$(UVM_HOME)/src/dpi/uvm_dpi.cc -CFLAGS -DVCS \
	 -f rtl.f \
	-l vcs.comp.log

vcs_run:
	./simv -l vcs.$(test)_$(seed).log +ntb_random_seed=$(seed) +UVM_TESTNAME=$(test) +UVM_VERBOSITY=$(verbosity)

vcs_clean:
	rm -rf csrc simv* .vcshost ucli.key vc_hdrs.h vcdplus.vpd .simvhost novas.conf novas_dump.log vcs.comp.log vcs.test_base_1.log verdi_Log dump.fsdb verdiLog novas.rc
 


